import request from '@/Util/request.js'
const prefix = '/api/app/goods'

/**
 * 获取商品列表
 * @returns
 */
 const List = (params) => {
	return request({
		url: prefix + '/List',
		params
	})
}

/**
 * 获取分类列表
 * @returns
 */
 const Category = (params) => {
	return request({
		url: prefix + '/Category',
		params
	})
}

const UpdateTime = () => {
	return request({
		url: prefix + '/UpdateTime',
	})
}

/**
 * 价格记录
 */
const PriceRecord = (id) => {
	return request({
		url: prefix + '/PriceRecord/' + id,
	})
}



export default {
	List,
	Category,
	UpdateTime,
	PriceRecord
}